home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Inspectors / InspectorManager / InspectorManager.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  76 lines

  1. // InspectorManager.h
  2. // By Kevin Brain
  3. // A class for managing an inspector.
  4. // Compositing techniques and functions from ToolInspector example
  5. // by Sharon Biocca Zakhour, NeXT Developer Support Team
  6. // You may freely copy, distribute and reuse the code in this example.  
  7. // *Everybody involved* disclaims any warranty of any kind, expressed 
  8. // or implied, as to its fitness for any particular use.
  9.  
  10. #import <objc/Object.h>
  11.  
  12. /* Inspector Type */
  13. #define NOSELECTIONS 0
  14. #define MULTIPLESELECTIONS 1
  15. #define NOTAPPLICABLE 2
  16. #define FIRSTADDEDINSPECTOR 3
  17. #define LOWERLEFTX 10
  18. #define LOWERLEFTY 40
  19.  
  20. @interface InspectorManager:Object
  21. {
  22.     id    inspectorPanel;
  23.     id    layouts;
  24.     id    inspectorStrings;
  25.     id    noInspectorBox;
  26.     id    multiInspectorBox;
  27.     id    unapplicableInspectorBox;
  28.     id    delegate;
  29.     id    revertOKOut;
  30.     id    popupOut;        // attaches to button that covers popup list
  31.     id    inspectorList;
  32.     id    groupList;
  33.     id    visibleInspectors;    /* Storage of visible inspector numbers */
  34.     NXRect    lastRect;
  35.     BOOL useKeyEquivalents;
  36.     struct inspectorListEntry {    // list of inspector info
  37.         id view;                // the box composing the inspector
  38.         char *title;            // pointer to inspector title
  39.         BOOL showing;            // YES if showing in the panel
  40.         NXRect offscreenRect;    // rect in layout view for compositing
  41.         };    
  42. }
  43.  
  44. /* instance methods */
  45. - init;
  46. - (unsigned int)addInspector:(id)theView title:(const char *)theTitle;
  47. - (unsigned int)addInspector:(id)theView title:(const char *)theTitle 
  48.     atLocation:(NXCoord)xLoc :(NXCoord)yLoc;
  49. - (unsigned int)addGroup:(const char *)theTitle;
  50. - setUseKeyEquivalents:(BOOL)use;
  51. - switchToInspector:(unsigned int)newInspector;
  52. - showInspector:(unsigned int)newInspector;
  53. - hideInspector:(unsigned int)inspectorNum;
  54. - (BOOL)showing:(unsigned int)inspectorNum;
  55. - (int)group;
  56. - panel;
  57. - popUpListButton;
  58. - revertOKMatrix;
  59. - setDelegate:(id)anObject;
  60. - delegate;
  61. - selectGroup:sender;
  62. - revertPressed:sender;
  63. - okPressed:sender;
  64. - showRevertOK;
  65. - hideRevertOK;
  66. - showGroupPopUp;
  67. - hideGroupPopUp;
  68. @end
  69.  
  70. @interface Object(InspectorManagerDelegate)
  71. - groupChanged:sender to:(int)newGroup;
  72. - inspectRevert:sender;
  73. - inspectOK:sender;
  74. @end
  75.  
  76.